<html>
    <head></head>
    <body>
<form method="post" action="<?php echo ADD_TRAINING_OFFERT;?>">
    <input type="hidden" value="<?php echo $data['page']['csrf_token'];?>" name="csrf_token">
        <fieldset id="addtrainingoffer">
                <label for="training_title"><?php echo TRAINING_OFFER_TITLE;?></label>
               	<input name="training_title" id="training_title" type="TEXT" required >
        </fieldset>
    <fieldset>
        <label for="active_offer_id"><?php echo TRAINING_OFEER_ACTIVE_OFFER;?></label>
        <select name="active_offer_id">
            <option></option>
            <?php
            foreach($data['page']['activity_type'] as $key){
            ?>
            <option value="<?php echo $key['id'];?>"><?php echo $key['activity_type'];?></option>
            <?php
            }
            ?>
        </select>
    </fieldset>
    <fieldset>
        <label for="page_main_category_id"><?php echo TRAINING_OFEER_MAIN_CATEGORY;?></label>
        <select name="page_main_category_id">
            <option></option>
            <?php
            foreach($data['page']['main_category_list'] as $key){
                ?>
            <option value="<?php echo $key['id'];?>"><?php echo $key['main_category_title'];?></option>
            <?php
            }
            ?>
        </select>
    </fieldset>
    <fieldset>
        <label for="page_sub_category_id"><?php echo TRAINING_OFEER_SUB_CATEGORY;?></label>
        <select name="page_sub_category_id">
            <option></option>
            <?php
            foreach($data['page']['sub_category_list'] as $key){
                ?>
            <option value="<?php echo $key['sub_category_main_category_id'];?>"><?php echo $key['sub_category_title'];?></option>
            <?php
            }
            ?>
        </select>
    </fieldset>
	<fieldset>
        		<label for="training_keywords"><?php echo TRAINING_OFFER_KEYOWRDS;?></label>
        		<textarea name="training_keywords" id="training_keywords"  required></textarea>
        </fieldset>
        <fieldset>
        		<label for="training_short_description"><?php echo TRAINING_OFFER_SHORT_DESCRIPTION;?></label>
        		<textarea name="training_short_description" id="training_short_description"  required></textarea>
        </fieldset>
        <fieldset>
        		<label for="training_long_description"><?php echo TRAINING_OFFER_LONG_DESCRIPTION;?></label>
        		<textarea name="training_long_description" id="training_long_description" required></textarea>
        </fieldset>
        <fieldset>
        		<label for="training_date"><?php echo TRAINING_OFFER_DATE;?></label>
        		<input name="training_date" id="training_date" type="date" required>
        </fieldset>
        <fieldset>
        		<label for="training_location"><?php echo TRAINING_OFFER_LOCATION;?></label>
        		<input name="training_location" id="training_location" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="training_duration"><?php echo TRAINING_OFFER_DURATION;?></label>
        		<input name="training_duration" id="training_duration" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="number_of_training_days"><?php echo NUMBER_OF_TRAINING_DAYS;?></label>
        		<input name="number_of_training_days" id="number_of_training_days" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="all_training_hours"><?php echo ALL_TRAINING_HOURS;?></label>
        		<input name="all_training_hours" id="all_training_hours" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="end_of_recrutation"><?php echo END_OF_RECRUTATION_TRAINING;?></label>
        		<input name="end_of_recrutation" id="end_of_recrutation" value="<?php echo END_OF_RECRUTATION;?>" type="button">
        </fieldset>
        <fieldset>
        		<label for="contact_to_company"><?php echo CONTACT_TO_COMPANY;?></label>
        		<input name="contact_to_company" id="contact_to_company" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="contact_about_training"><?php echo CONTACT_ABOUT_TRAINING;?></label>
        		<input name="contact_about_training" id="contact_about_training" type="text" required>
        </fieldset>
        <fieldset>
        		<label for="training_plan"><?php echo TRAINING_PLAN;?></label>
                        <textarea name="training_plan" id="training_plan" required></textarea>
        </fieldset>
    
        <input type="submit" value="<?php echo ADD_NEW_TRAINING_OFFER_ACTION;?>" />
</form>
    </body>
</html>
